package GroupClass;

import java.io.Serializable;
import java.sql.Date;

public class AccountClass implements Serializable {
	
	private int id;
	private String loginname;
	private String password;
	private String accountid;
	private String groupid; 
	private String name;
	private String CompanyName;
	private String sex;
	private String cmnd;
	private String address;
	private String phone;
	private String email;
	private String birthday;
	private String groupname;
	
    public String getGroupname() {
		return groupname;
	}
	public void setGroupname(String groupname) {
		this.groupname = groupname;
	}
	
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}
	
	public String getGroupid() {
		return groupid;
	}

	public void setGroupid(String groupid) {
		this.groupid = groupid;
	}
	
	public String getAccountid() {
		return accountid;
	}

	public void setAccountid(String accountid) {
		this.accountid = accountid;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	

	
	public String getLoginname() {
		return loginname;
	}

	public void setLoginname(String loginname) {
		this.loginname = loginname;
	}
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getCompanyName() {
		return CompanyName;
	}

	public void setCompanyName(String companyName) {
		CompanyName = companyName;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public String getCmnd() {
		return cmnd;
	}

	public void setCmnd(String cmnd) {
		this.cmnd = cmnd;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}
		public String getBirthday() {
		return birthday;
	}

	public void setBirthday(String birthday) {
		this.birthday = birthday;
	}

	public AccountClass()
	{
	}
	
	public AccountClass(String accountid,String groupid)
	{
		this.accountid = accountid;
		this.groupid = groupid;
	}
	
	@Override
    public String toString() {
        return loginname;
    }

	public AccountClass(int id,String loginname, String name, String companyName, String birthday,
			String sex, String cmnd, String address, String phone, String email) {
		super();
		this.id = id;
		this.loginname = loginname;
		this.name = name;
		this.CompanyName = companyName;
		this.birthday = birthday;
		this.sex = sex;
		this.cmnd = cmnd;
		this.address = address;
		this.phone = phone;
		this.email = email;
	}
	
	public AccountClass(String loginname, String name, String companyName, String birthday,
			String sex, String cmnd, String address, String phone, String email) {
		super();
		this.loginname = loginname;
		this.name = name;
		CompanyName = companyName;
		this.birthday = birthday;
		this.sex = sex;
		this.cmnd = cmnd;
		this.address = address;
		this.phone = phone;
		this.email = email;
	}

	public AccountClass(String accountid,String groupid,String loginname, String name, String companyName, String birthday,
			String sex, String cmnd, String address, String phone, String email) {
		super();
		this.accountid = accountid;
		this.groupid = groupid;
		this.loginname = loginname;
		this.name = name;
		CompanyName = companyName;
		this.birthday = birthday;
		this.sex = sex;
		this.cmnd = cmnd;
		this.address = address;
		this.phone = phone;
		this.email = email;
	}	
}
